<?php
	class admin_shortcutmenu_widget extends Widget {

		public function display($args)
		{
			//$CI =& get_instance();
			//print_r($args);
			$member = $this->session->userdata('admin');
			$name=$member['firstname']." ".$member['lastname'];
			$id=$member['userid'];
			
			$data=array();
			//echo "<pre>";
			//print_r($data);
			if($member['group_type'] == 'SUPERADMIN')
			{
				$this->load->view('widgets/superadmin_shortcutmenu', $data);
			}
			elseif($member['group_type'] == 'ADMINISTRATOR')
			{
				$this->load->view('widgets/admin_shortcutmenu', $data);
			}
			
		}
	
}